From 29d0dfb8b71f5b541b3dfad3ac6d16d86f6cc334 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 7 Feb 2018 19:53:48 +0100 Subject: [PATCH] babl: fix minor leak reported in bug #790924 --- babl/babl-format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/babl/babl-format.c b/babl/babl-format.c index 1db5f02..bc5ef6b 100644 --- a/babl/babl-format.c +++ b/babl/babl-format.c @@ -737,6 +737,8 @@ babl_format_with_space (const char *name, const Babl *space) sprintf (new_name, "%s-%s", name, babl_get_name ((Babl*)space)); ret = babl_db_exist_by_name (db, new_name); + + babl_free (new_name); if (ret) return ret; -- 2.30.2